//
//  ProfileImageLoadingOperation.h
//  WoWeibo
//
//  Created by  on 12-5-10.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>

@protocol ProfileImageLoadingDelegate <NSObject>

- (void)didDownloadImage:(NSIndexPath *)indexPath withImage:(UIImage *)image;

@end

@interface ProfileImageLoadingOperation : NSOperation {
@private
    id<ProfileImageLoadingDelegate>     _delegate;
    
    NSURL           *_url;
    NSIndexPath     *_indexPath;
}

@property (nonatomic, assign)id<ProfileImageLoadingDelegate>    delegate;

- (id)initWithURL:(NSURL *)url indexPath:(NSIndexPath *)indexPath;

@end
